package com.student.common.entity;

import lombok.Data;
import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 教师实体类
 * 
 * @author student
 * @date 2025
 */
@Data
@Entity
@Table(name = "teacher")
public class Teacher {
    
    @Id
    @Column(name = "teacher_id", length = 20)
    private String teacherId;
    
    @Column(name = "name", length = 20, nullable = false)
    private String name;
    
    @Column(name = "gender", length = 2)
    private String gender;
    
    @Column(name = "title", length = 20)
    private String title;
    
    @Column(name = "department", length = 50)
    private String department;
    
    @Column(name = "phone", length = 20)
    private String phone;
    
    @Column(name = "email", length = 100)
    private String email;
    
    @Column(name = "hire_date")
    private LocalDate hireDate;
    
    @Column(name = "status", length = 20)
    private String status;
    
    @Column(name = "create_time")
    private LocalDateTime createTime;
    
    @Column(name = "update_time")
    private LocalDateTime updateTime;
}
